$(function () {
    window.onload = function () {
        $.ajax({
            url: 'http://localhost:3000/guid/new',
            method: 'get',
            success: function (reb) {
                var add = [];
                var str = '';
                for (var i = 0; i < 12; i++) {
                    add.push(reb[i])
                }
                // console.log(add);
                $.each(add, function (index, item) {
                    str += "<li class=report>" +
                        "<img src=" + item.img + ">" +
                        "<div class=wen>" + item.text + "</div>" +
                        "<div class=comment>" +
                        "<span>" + "<img src=../img/css-img/img/xin.png>3&nbsp;&nbsp;" + "<img src=../img/css-img/img/zan.png>&nbsp;&nbsp;3" + "</span>" +
                        "</div>" +
                        "</li>"
                })
                str+=str
                // 复制加长
                $('.content-box').html(str);
            }
        })
        $('.content-box5').click(function () {
            $('.content-box').css('height', '1390px');
            $('.both-box').css('height', '1500px');
            $('.content-box5').hide();
        })
    }
})